﻿using _01_登录界面.View;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace _01_登录界面
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application
	{
		protected override void OnStartup(StartupEventArgs e)
		{
			base.OnStartup(e);
			//当showdialog结束后进入主窗口
			if (new LoginView().ShowDialog()==true)
			{
				//主窗口结束
				new MainView().ShowDialog();

			}
			Application.Current.Shutdown();
		}
	}
}
